﻿using CID.Domain.Users;
using CID.Tests.Support;
using NUnit.Framework;

namespace CID.Domain.Tests.Users
{
    [TestFixture]
    public class UserRoleAssignmentTests : BaseFunctionalTests
    {
        [Test]
        public void CreateNewUserRoleAssignment()
        {
            var user = StubsBuilder.BuildUserStub();
            var userRole = UserRole.Architect;

            var userRoleAssginment = new UserRoleAssignment(user, userRole);

            Assert.AreEqual(user, userRoleAssginment.User);
            Assert.AreEqual(userRole, userRoleAssginment.UserRole);
        }
    }
}
